<?php
    /**
     * Created by JetBrains PhpStorm.
     * User: dsphinx
     * Date: 11/30/13
     * Time: 10:27 PM
     * To change this template use File | Settings | File Templates.
     */


    Init::_load("Auth");

    if (Input::In_GET_Url('cmd') == "logout" ) {
        Auth::logout();


    $url = 'https://docs.google.com/forms/d/1QEFVMI0UVso_fwpHNYv1QlLUjZue8TB3P9u91Xl6vHo/viewform?edit_requested=true';
    echo '<meta http-equiv="refresh" content="0;url='.$url.'">';

    return;
}


    $_FORM_KEY = Html_Form::_set_call();


    $tmp = Controller::get_plain_file(__DIR__ . '/login.html', 'html', TRUE);
    $tmp = str_replace("[@FORM_KEY]", $_FORM_KEY, $tmp);



    echo '<script src="Contents/signin/signin.js"> </script>  <link href="Contents/signin/login_style.css" rel="stylesheet">';

    echo $tmp;

    // echo $_FORM_KEY;


    /*
     *   Load All file in current Directory
     */
  //  Controller_files::_load_directory_files(__DIR__);
?>